const db=wx.cloud.database()
  Page({
    data: {
      opValue:[],
      num:"",
    },
    onLoad() {
      const globalData = getApp().globalData;
         var opValue=globalData.inputList;
        this.data.num=this.data.opValue.length;
        this.setData({
          opValue: opValue
        });
          console.log( "opValue",this.data.opValue);
    },
    gotoDet:function(e) {
      const globalData = getApp().globalData;
      wx.navigateTo({
        url:'/pages/Det/Det'
      });
     // 获取当前项的数据
    const item = e.currentTarget.dataset.item;
    // 或者，如果你需要索引
    const index = e.currentTarget.dataset.index;
    globalData.inputList=item;
      console.log("item",e.currentTarget.dataset.item);  
    },
})